package com.diudiutechnology.www.yadiudiu.yadiudiu.mine.MyAdapter;

import android.content.Context;
import android.widget.BaseAdapter;

import java.util.List;

/**
 * Created by Administrator on 2017/8/21.
 */

public abstract class MyBaseAdapter <T> extends BaseAdapter {

    public List<T> dataList;
    public Context context;

    public MyBaseAdapter(List<T> dataList, Context context) {
        this.dataList = dataList;
        this.context = context;
    }

    public MyBaseAdapter(List<T> dataList) {
        this.dataList = dataList;
    }

    @Override
    public int getCount() {
        return dataList.size();
    }

    @Override
    public Object getItem(int position) {
        return dataList.get(position);
    }

    @Override
    public long getItemId(int position) {
        return position;
    }




}

